package ru.study.thinkin.tests;

public class A {
	String variable;
	
	public A() {
		printVariable();
		System.out.println("Hello World");
	}
	
	protected void printVariable() {
		variable = "variable initialization in A Class";		
	}
	
	public static void main(String[] args) {
		new B();		
	}
}	
	
class B extends A {
	String variable = null;
	
	public B () {
		System.out.println("variable value ="+variable);		
	}
	
	protected void printVariable() {
		variable = "variable initialization in B Class";		
	}
}


